package io.itit.ecp.admin.provide.task;

import io.itit.ecp.admin.common.enums.IEarlyWarningEnums;
import io.itit.ecp.admin.provide.helper.EarlyWarningHelper;
import io.itit.grass.scheduler.server.entity.TaskSchedulerEntity;
import io.itit.grass.scheduler.server.task.IGrassTask;
import org.springframework.stereotype.Component;

/*
 **********************
 * @Author wei
 * @ClassName MeterDeviceWarningDayTask
 * @Description 设备计量预警 按日计量
 * @Date 2023/12/5 9:58
 **********************
 **/
@Component
public class MeterDeviceWarningDayTask implements IGrassTask {

    @Override
    public String run(TaskSchedulerEntity taskScheduler) {
        return EarlyWarningHelper.i().runDeviceWarningTask(IEarlyWarningEnums.MeterCondition.meterCondition2, taskScheduler);
    }
}
